package baseline;

import java.io.IOException;

public class Baseline {
  public static TrainingFile trainingFile_;
  public static TestFile testFile_;

  public static void main(String[] args) {
    if (args.length != 2) {
      System.err.println("USAGE: Baseline <training-file> <test-file>");
    }

    // Parsing command line arguments.

    try {
      trainingFile_ = new TrainingFile(args[0]);
    } catch (FileParser.FPException e) {
      System.err.println(e.getMessage());
      System.exit(1);
    }
    System.out.println("Completed parsing training file.");
    System.out.println("********************************\n");

    testFile_ = new TestFile(args[1]);
    try {
      testFile_.process(trainingFile_);
    } catch (IOException e) {
      System.err.println(e.getMessage());
      System.exit(0);
    }

    System.out.println("Done processing test data.");
    System.out.println("**************************");
  }
}